package com.efast.dmom.mes.entity;

import java.time.LocalDateTime;
import java.util.List;

import com.efast.dmom.mes.entity.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateSerializer;

public class SubmittedWorkEntity extends BaseEntity{

	/**
	 * 
	 */
	private static final long serialVersionUID = -7421585678054489710L;
	
	private long partId;
	
	private long operationId;
	
	private String operationType;
	
	private long blankPiecePartId = 0;
	
	private int blankPiecePartQty;
	
	private long warehouseId = 0;
	
	private int submittedUnqualifiedQty;
	
	private int submittedQualifiedQty;
	
	private int submittedQty;
	
	private String submittedWorkUser;
	
	private long submittedWorkType;
	private long outsourcingQty;
	private long retentionQty;
	
	private String orderNumber;
	
	private long planId;
	
	private Double blankPiecePartUnitPrice;
	
	private List<Long> weiwaiOperationIds;
	
	@JsonDeserialize(using = LocalDateDeserializer.class)
	@JsonSerialize(using = LocalDateSerializer.class)
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd hh:mm:ss")
	private LocalDateTime submittedWorkDate;
	
	private long equipId;
	
	private long spareId;

	public long getEquipId() {
		return equipId;
	}

	public void setEquipId(long equipId) {
		this.equipId = equipId;
	}

	public long getSpareId() {
		return spareId;
	}

	public void setSpareId(long spareId) {
		this.spareId = spareId;
	}

	public long getPartId() {
		return partId;
	}

	public void setPartId(long partId) {
		this.partId = partId;
	}

	public long getOperationId() {
		return operationId;
	}

	public void setOperationId(long operationId) {
		this.operationId = operationId;
	}

	public long getBlankPiecePartId() {
		return blankPiecePartId;
	}

	public void setBlankPiecePartId(long blankPiecePartId) {
		this.blankPiecePartId = blankPiecePartId;
	}

	public int getBlankPiecePartQty() {
		return blankPiecePartQty;
	}

	public void setBlankPiecePartQty(int blankPiecePartQty) {
		this.blankPiecePartQty = blankPiecePartQty;
	}

	public int getSubmittedUnqualifiedQty() {
		return submittedUnqualifiedQty;
	}

	public void setSubmittedUnqualifiedQty(int submittedUnqualifiedQty) {
		this.submittedUnqualifiedQty = submittedUnqualifiedQty;
	}

	public int getSubmittedQualifiedQty() {
		return submittedQualifiedQty;
	}

	public void setSubmittedQualifiedQty(int submittedQualifiedQty) {
		this.submittedQualifiedQty = submittedQualifiedQty;
	}

	public int getSubmittedQty() {
		return submittedQty;
	}

	public void setSubmittedQty(int submittedQty) {
		this.submittedQty = submittedQty;
	}

	public String getSubmittedWorkUser() {
		return submittedWorkUser;
	}

	public void setSubmittedWorkUser(String submittedWorkUser) {
		this.submittedWorkUser = submittedWorkUser;
	}

	public LocalDateTime getSubmittedWorkDate() {
		return submittedWorkDate;
	}

	public void setSubmittedWorkDate(LocalDateTime submittedWorkDate) {
		this.submittedWorkDate = submittedWorkDate;
	}

	public String getOperationType() {
		return operationType;
	}

	public void setOperationType(String operationType) {
		this.operationType = operationType;
	}

	public long getWarehouseId() {
		return warehouseId;
	}

	public void setWarehouseId(long warehouseId) {
		this.warehouseId = warehouseId;
	}

	public long getSubmittedWorkType() {
		return submittedWorkType;
	}

	public void setSubmittedWorkType(long submittedWorkType) {
		this.submittedWorkType = submittedWorkType;
	}

	public long getOutsourcingQty() {
		return outsourcingQty;
	}

	public void setOutsourcingQty(long outsourcingQty) {
		this.outsourcingQty = outsourcingQty;
	}

	public long getRetentionQty() {
		return retentionQty;
	}

	public void setRetentionQty(long retentionQty) {
		this.retentionQty = retentionQty;
	}


	public long getPlanId() {
		return planId;
	}

	public void setPlanId(long planId) {
		this.planId = planId;
	}

	public String getOrderNumber() {
		return orderNumber;
	}

	public void setOrderNumber(String orderNumber) {
		this.orderNumber = orderNumber;
	}

	public Double getBlankPiecePartUnitPrice() {
		return blankPiecePartUnitPrice;
	}

	public void setBlankPiecePartUnitPrice(Double blankPiecePartUnitPrice) {
		this.blankPiecePartUnitPrice = blankPiecePartUnitPrice;
	}

	public List<Long> getWeiwaiOperationIds() {
		return weiwaiOperationIds;
	}

	public void setWeiwaiOperationIds(List<Long> weiwaiOperationIds) {
		this.weiwaiOperationIds = weiwaiOperationIds;
	}




	
	
	
}
